import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login';
import Home from '../components/home'
import EmpList from '../components/empList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
      hidden: true
    }, {
      path: '/home',
      name: '主页',
      component: Home,
      hidden: true,
      meta: {
        requireAuth: true,
        keepAlive: false
      },
      children: [
        {
          path: '/empList',
          name: '正式员工',
          component: EmpList
        }
      ]
    }
  ]
})
